// pages/banner/banner.js
Page({
  data:{
      img:[
          '/image/02.jpg',
          '/image/03.jpg',
          '/image/01.jpg',
          '/image/04.jpg',
          '/image/05.jpg'
      ],
      current:0
  },
  onLoad:function(options){
    
  },
  onChangeTap:function(event){
      this.setData({
          current:event.detail.current
      })
  },
  ripTap:function(res){
    console.log(res);
    var x=res.touches[0].pageX;
    var y=res.touches[0].pageY+85;
    this.setData({
      rippleStyle:''
    });
    this.setData({
      rippleStyle:'top:'+y+'px;left:'+x+'px;-webkit-animation: ripple 0.4s linear;animation:ripple 0.4s linear;'
    });
  }
})